package com.yunti.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单位对象 base_unit
 *
 * @author yangtt
 * @date 2024-11-22
 */

@Data
@Accessors(chain = true)
@TableName("base_unit")
public class BaseUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学校ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 赛事ID */
    @Excel(name = "赛事ID")
    private Long raceId;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 单位logo路径 */
    @Excel(name = "单位logo路径")
    private String logoSrc;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String unitName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRaceId(Long raceId)
    {
        this.raceId = raceId;
    }

    public Long getRaceId()
    {
        return raceId;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setLogoSrc(String logoSrc)
    {
        this.logoSrc = logoSrc;
    }

    public String getLogoSrc()
    {
        return logoSrc;
    }
    public void setUnitName(String unitName)
    {
        this.unitName = unitName;
    }

    public String getUnitName()
    {
        return unitName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("raceId", getRaceId())
            .append("sort", getSort())
            .append("logoSrc", getLogoSrc())
            .append("unitName", getUnitName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
